package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

@RestController
public class DemoA {


    @RequestMapping(value ="test", method = RequestMethod.GET)
    public String test(HttpServletRequest req, String aaaa, HttpSession m){
     throw  new RuntimeException("java.lang.的一个异常");
    }
}
